You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > UniformDFit Method > Statistics.UniformDFit Method ([In] TVec, out int, double[], double)
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Statistics.UniformDFit Method ([In] TVec, out int, double[], double)

Calculate parameters for discrete uniformly distributed values.

Syntax
C#
Visual Basic
public static void UniformDFit([In] TVec X, out int N, ref double[] NConfInt, double Alpha);
Parameters 
Description 
[In] TVec X 
Stores data which is assumed to be discrete uniformly distributed. 
out int N 
Returns discrete uniform distribution parameter estimator. 
ref double[] NConfInt 
N (1-Alpha)*100 percent confidence interval. 
double Alpha 
Confidence interval percentage. 

RandomUniformD, UniformDStat

The following example generates 1000 random discrete uniform distributed values and then uses UniformDFit routine to extract used N parameter:

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples; { private void Example() { Vector vec1 = new Vector(1000, false); // first, generate 1000 randomly disc.uniformly distributed // numbers with parameter N = 12 StatRandom.RandomUniformD(12, vec1, -1); // Now, extract N and its 95% // confidence interval int resN; double[] CIN = new double[2]; Statistics.UniformDFit(vec1, out resN, out CIN, 0.05); } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!